package io;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class ISWDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("osw.txt");
        //输入流阅读
        InputStreamReader isr=new InputStreamReader(fis, StandardCharsets.UTF_8);
        /*
        int read()
        读取1个字符（）
         */
        int d;
                 //获取当前字节码
        while ((d=isr.read())!=-1){
            System.out.print((char) d);
        }
isr.close();
    }
}
